﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Reborn.IdentityServer4.Admin.Api.Dtos.IdentityResources;

public class IdentityResourceApiDto
{
    public IdentityResourceApiDto()
    {
        UserClaims = new List<string>();
    }

    public int Id { get; set; }

    [Required] public string Name { get; set; }

    public string DisplayName { get; set; }

    public string Description { get; set; }

    public bool Enabled { get; set; } = true;

    public bool ShowInDiscoveryDocument { get; set; } = true;

    public bool Required { get; set; }

    public bool Emphasize { get; set; }

    public List<string> UserClaims { get; set; }
}